﻿import QtQuick.Controls.Styles 1.4

import QtQuick 2.2
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.2

//自定义单选按钮
CheckBox {
      id: control
      style: CheckBoxStyle {
          indicator: Rectangle {
              implicitWidth: 16
              implicitHeight: 16
              radius: 3
              border.color: control.activeFocus ? "darkblue" : "gray"
              border.width: 1
              Rectangle {
                  visible: control.checked
                  color: "#555"
                  border.color: "#333"
                  radius: 1
                  anchors.margins: 4
                  anchors.fill: parent
              }
          }

            label: Text {
                text: control.text
                opacity: enabled ? 1.0 : 0.3
                color: "#d4d5d6"
                verticalAlignment: Text.AlignVCenter
            }
      }
}
